﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Services
{
    /// <summary>
    /// ServiceContract标签表名此接口以及实现此接口的类都是对外发布的Service类
    /// </summary>
    [ServiceContract]  
    public interface IBookService
    {
        /// <summary>
        /// OperationContract标签是为使得外部可以访问到此方法
        /// </summary>
        /// <param name="book"></param>
        [OperationContract]
        void AddBooks(Book book);

        [OperationContract]
        List<Book> GetAllBooks();

        [OperationContract]
        void RemoveBook(string bookID);
        
    }
}
